/*
 * F.java
 * 
 * Created on 11/09/2007, 11:26:56
 * 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tcc.gui.web.struts.funcionario;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import tcc.applicationService.tccsystemuser.TccSystemUserAS;


public class GerenciarFuncionarioAction extends Action{

    private static final String SUCCESS_FWD = "success";
    
    public GerenciarFuncionarioAction() {
    }

    @Override
    public ActionForward execute(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response) throws Exception {
  
        
        FuncionarioForm f = (FuncionarioForm) form;
        TccSystemUserAS.getInstance().salvarFuncionario(f.getFuncionario());
        
        return mapping.findForward(SUCCESS_FWD);
    
    }

    
    
    

}
